package modele;

import javax.swing.AbstractListModel;

/*_____________________________________________*/
/**
 * @author ARNAL - IMBERT
 *
 */
public class MdlListRobot extends AbstractListModel
{

	private Simulateur mdl;
	/**
	 */
	private static final long serialVersionUID = 1L;
	
	public MdlListRobot(Simulateur mdl)
	{
		this.mdl = mdl;	
	}
	
	public Object getElementAt(int index)
	{
		return mdl.getRobots().get(index).getNom();
	}

	
	public int getSize()
	{
		return mdl.getRobots().size();
	}
	
	
	public void MAJ(int index)
	{
		fireContentsChanged(this, index, index) ;
	}	

}
